<script setup>
defineOptions({
  name: 'homeSwipe'
})
defineProps(['slides'])
</script>

<template>
  <van-swipe :autoplay="3000" lazy-render>
    <van-swipe-item v-for="image in slides" :key="image">
      <img :src="image.img_url" class="mx-auto d-block" />
    </van-swipe-item>
  </van-swipe>
</template>

<style scoped lang="scss"></style>
